package com.example.lcpharmacy.lcutils;

public class Pagination {

    /**
     * 当前页
     */
    private int pageNum;

    /**
     * 每页长度
     */
    private int pageSize;

    /**
     * 总数据量
     */
    private int total;

    public int getPageNum() {
        return pageNum;
    }

    public void setPageNum(int pageNum) {
        this.pageNum = pageNum > 0 ? pageNum : 1;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }
}
